import {MAIN} from "../actions/types";

const initialState = {
    selectedTab: 'home',
};


export default (state = initialState, action) => {

    switch (action.type) {
        case MAIN.changeTab:
            return {...state, selectedTab: action.payload.selectedTab};
        case 'user-init':
            return {};
        default:
            console.log('main');
            return state
    }
}
